/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author owtee
 */
@Entity
@Table(name = "job_generate_id")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "JobGenerateId.findAll", query = "SELECT j FROM JobGenerateId j"),
    @NamedQuery(name = "JobGenerateId.findByJobDate", query = "SELECT j FROM JobGenerateId j WHERE j.jobDate = :jobDate"),
    @NamedQuery(name = "JobGenerateId.findByJobId", query = "SELECT j FROM JobGenerateId j WHERE j.jobId = :jobId")})
public class JobGenerateId implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "Job_Date")
    private Integer jobDate;
    @Column(name = "Job_Id")
    private Integer jobId;

    public JobGenerateId() {
    }

    public JobGenerateId(Integer jobDate) {
        this.jobDate = jobDate;
    }

    public Integer getJobDate() {
        return jobDate;
    }

    public void setJobDate(Integer jobDate) {
        this.jobDate = jobDate;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (jobDate != null ? jobDate.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof JobGenerateId)) {
            return false;
        }
        JobGenerateId other = (JobGenerateId) object;
        if ((this.jobDate == null && other.jobDate != null) || (this.jobDate != null && !this.jobDate.equals(other.jobDate))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.JobGenerateId[ jobDate=" + jobDate + " ]";
    }
    
}
